<template>
    <div class="app">
        <div class="evaluate_top">
            <img :src="img"/>
            <div class="evaluate_left">
                <div class="start">
                    <van-rate :value="value" size="15px" color="rgb(234, 122, 47)"/>
                </div>
                <div class="com_label">
                    <span v-for="(item,index) in title" :key="index">{{item}}</span>
                </div>
                <div class="pingjia">{{text}}</div>
            </div>
        </div>
    </div>
</template>

<script>

    export default {
        // name: Teacher,
        props: {
            img: {
                //讲师头像
                default:
                    "https://msmk2019.oss-cn-shanghai.aliyuncs.com/uploads/avatar.jpg",
                type: String,
            },
            value: {
                // 讲师评分
                dafault: 0,
                type: Number,
            },
            title: {
                // 讲师个性
                default: "内容",
                type: Array,
            },
            text: {
                // 评论
                default: "评论",
                type: String,
            },
        },
        data() {
            return {};
        },
    };
</script>

<style scoped lang="scss">
    .evaluate_top {
        width: 90%;
        margin: 20px auto;
        display: flex;

        img {
            width: 8vw;
            height: 8vw;
            border-radius: 50%;
            margin-top: 25px;
        }

        .evaluate_left {
            background: #fff;
            padding: 0 20px 40px 20px;

            div {
                margin-top: 10px;
            }

            .com_label {
                width: 100%;
                padding-top: 1.33333vw;
                display: flex;
                align-items: center;
                justify-content: space-between;
                flex-wrap: wrap;

                span {
                    font-size: 3.2vw;
                    font-family: PingFangSC-Regular;
                    font-weight: 400;

                    display: inline-block;
                    width: 23vw;
                    height: 6vw;
                    line-height: 5.86667vw;
                    background: #f5f5f5;
                    border-radius: 1.06667vw;
                    color: #8c8c8c;
                    text-align: center;
                    margin-bottom: 1.33333vw;
                }
            }

            .pingjia {
                line-height: 6.4vw;
                color: #999;
                font-size: 3.2vw;
                font-family: PingFangSC-Regular;
                font-weight: 400;
            }
        }
    }
</style>